import request from '@/utils/request'

// 查询套餐销售记录列表
export function listMealOrder(query) {
  return request({
    url: '/ds/mealOrder/list',
    method: 'get',
    params: query
  })
}

// 查询套餐销售记录详细
export function getMealOrder(id) {
  return request({
    url: '/ds/mealOrder/' + id,
    method: 'get'
  })
}

// 新增套餐销售记录
export function addMealOrder(data) {
  return request({
    url: '/ds/mealOrder',
    method: 'post',
    data: data
  })
}

// 修改套餐销售记录
export function updateMealOrder(data) {
  return request({
    url: '/ds/mealOrder',
    method: 'put',
    data: data
  })
}

// 删除套餐销售记录
export function delMealOrder(id) {
  return request({
    url: '/ds/mealOrder/' + id,
    method: 'delete'
  })
}

// 导出套餐销售记录
export function exportMealOrder(query) {
  return request({
    url: '/ds/mealOrder/export',
    method: 'get',
    params: query
  })
}